<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><h:outputText value="${appMain.appName}" /></title>        
        <link rel="stylesheet" href="../style.css" media="screen" />
    </head>

    <body>
        <div id="main_container">

            <div id="top_banner">
                <div id="logo">
                    <h:graphicImage value="/images/logo.gif" width="200" height="81" />                    
                </div>

                <div class="snapshot">
                    <h:graphicImage value="/images/demopic.gif" width="280" height="118" />                    
                </div>
            </div>


            <div class="navigation">
                <h:form>
                    <ul>
                        <li class="current">                        
                            <a href="${appMain.contextPath}/index.xhtml">Home</a>
                        </li>                    
                    </ul>
                </h:form>
            </div>
            <div id="center_content">                
                <div class="left_box1">
                    <div class="sidebox">                                                
                        <h:form>                    
                            <h3>Entrada Dados</h3>                        
                            <div class="side_in_box">
                                <h:outputText value="Titulo" /><br />
                                <h:inputText value="#{coletorRequisito.requisito.titulo}" styleClass="input"/>
                                <div class="clear"></div>

                                <h:outputText value="Descricao" /><br />
                                <h:inputText value="#{coletorRequisito.requisito.descricao}" styleClass="input"/>                            
                                <div class="clear"></div>

                                <h:outputText value="Prioridade" /><br />
                                <h:inputText value="#{coletorRequisito.requisito.prioridade}" styleClass="input"/>
                                <div class="clear"></div>

                                <h:commandButton action="#{coletorRequisitoWebAdapter.incluirRequisito()}" value="Incluir" />
                                <div class="clear"></div>

                            </div>                            

                        </h:form>
                    </div>    
                </div>

                <div class="left_box2">
                    <div class="clear"></div>
                    <h:form>
                        <h:dataTable value="#{listagemRequisito.actions}" var="webAction" columnClasses="tabel, tabel, tabel">                        
                            <h:column>
                                <h:outputText value="#{webAction.entidade.titulo}" />
                            </h:column>                            
                            <h:column>
                                <h:outputText value="#{webAction.entidade.descricao}" />
                            </h:column>                            
                            <h:column>
                                <h:outputText value="#{webAction.entidade.prioridade}" />
                            </h:column>                            

                            <h:column>
                                <h:commandButton action="#{webAction.editar()}" value="Editar" />

                            </h:column> 
                            
                            <h:column>
                                <h:commandButton action="#{webAction.excluir()}" value="Excluir" />

                            </h:column> 

                        </h:dataTable>
                    </h:form>
                </div>

                <div style="width:500px; clear:both; padding-bottom:2px;"></div>
            </div>



        </div>




        <div id="footer">
            <ul>

                <li><a href="#" title="">Home</a></li>
                <li><a href="#" title="">Products</a></li>
                <li><a href="#" title="">News</a></li>
                <li><a href="#" title="">Support</a></li>
                <li><a href="#" title="">Contacts</a></li>


            </ul>

            Copyright 2007 &copy; Aero International Inc.  <br />
            <a href="http://www.csscreme.com">
                <h:graphicImage value="/images/csscreme.jpg" width="200" height="35" />                                   
            </a><br />
            <a href="http://validator.w3.org/check?uri=referer" title="This site is W3C compliant" style="text-decoration:none; color:#333333;">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?uri=www.csscreme.com&amp;usermedium=all" title="This site is coded with validate CSS" style="text-decoration:none; color:#333333;">css</a> 

        </div>

    </body>
</html>
